You are here: Trading System Programming > Reference > Classes > TechnicalAnalysis > TechnicalAnalysis Methods > AROON

AROON

This method calculates Aroon.

 

Syntax

var AROON(period, highPricesArray, lowPricesArray, calculatedDownArray, calculatedUpArray);

Parameters

period

Period integer value.

 

highPricesArray

Array object filled with high prices.

 

lowPricesArray

Array object filled with low prices.

 

calculatedDownArray

Empty Array object that will be filled with down calculated data.

 

calculatedUpArray

Empty Array object that will be filled with up calculated data.

Return Value

Returns true if calculation was completed successfully, or false otherwise.

Example

The following example demonstrates how to AROON method.

 

function calculate(beginIndex, endIndex)

{

var period = 15;

var highPricesArray = new Array();

var lowPricesArray = new Array();

 

//populate arrays..

..

..

..

 

var calculatedDownArray = new Array();

var calculatedUpArray = new Array();

 

var rc = TechnicalAnalysis.AROON(period, highPricesArray, lowPricesArray, calculatedDownArray, calculatedUpArray);

}

 

 


Copyright © 2006-2009 ActiveTick LLC